package com.pet_service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pet_service.entity.HomeServiceType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 邹全伸
* @description 针对表【home_service_type(上门服务类型表)】的数据库操作Mapper
* @createDate 2025-09-20 09:18:18
* @Entity com.pet_service.entity.HomeServiceType
*/
public interface HomeServiceTypeMapper extends BaseMapper<HomeServiceType> {
    // 自定义物理删除方法（通过ID删除记录）
    int deleteByPhysicalId(Integer id);

    //根据订单id和服务类型id查询上门服务的订单
    List<HomeServiceType> selectByOrderIdAndServiceTypeId(@Param("order_id") Integer order_id, @Param("service_type_id") Integer service_type_id);
}




